#include "func.h"

link *find(link *head, char *find_name)
{
    printf("\033c"); //清屏
    link *tmp = head->next;
    while (tmp)
    {
        if ((my_strcmp(tmp->p.name, find_name)) == 0)
        {
            printf("已找到该联系人：%s\n", tmp->p.name);
            break;
        }
        tmp = tmp->next;
    }
    if (tmp == NULL)
    {
        printf("没有该联系人!\n");
        printf("输入任意键继续: ");
        getchar();
        getchar();
    }
    return tmp;
}